@import "var";

html, body {
  padding: 0;
  margin: 0;
  color: #333;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: $bg-color;
  height: 100%;
}

#app, .app-body {
  height: 100%;

  .el-color-picker__trigger {
    height: 25px;
    width: 25px;
  }
}

.main-container {
  margin-left: $nav-left-width;
  height: 100%;
  .content {
    padding: 20px;
    height: calc(100% - 60px);
    box-sizing: border-box;
  }

  .el-vue-amap-container {
    .amap-container {
      height: 100%;
    }
  }

  .map {
    height: 100%;
  }
}



.navBar-container {
  position: fixed;
  height: 100%;
  left: 0;
  width: $nav-left-width;
  z-index: 2001;
  background: $nav-bar-bg-color;

  .icon {
    margin-right: 16px;
    color: #fff;
  }

  //reset element-ui css
  .horizontal-collapse-transition {
    transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
  }

  .el-scrollbar, .el-scrollbar__wrap {
    height: 100%;

    .el-scrollbar__view {
      height: 100%;
    }

    overflow-x: hidden;
  }
}

.mobile-shade {
  position: fixed;
  height: 100%;
  left: 0;
  right: 0;
  top: 0;
  border: 0;
  z-index: 2000;
}


.el-menu {
  border: 0;

  .el-menu-item {
    color: $nav-bar-color;

    &.is-active {
      color: $--color-primary;
    }
  }

  .el-submenu__title {
    color: $nav-bar-color;
  }
}

.hide-navBar {
  .main-container {
    margin-left: $nav-left-width--mini;
  }

  .navBar-container {
    width: $nav-left-width--mini !important;
  }
}

.mobile {
  .main-container {
    margin-left: 0;
  }

  .navBar-container {
    transition: transform $transition-time;
    width: $nav-left-width !important;
  }

  &.hide-navBar {
    .navBar-container {
      width: $nav-left-width--mini !important;
      transition-duration: $transition-time;
      transform: translate3d(-$nav-left-width--mini, 0, 0);
    }
  }
}


.hamburger {
  cursor: pointer;
  height: 50px;
  width: 50px;
  line-height: 50px;
  text-align: center;

  .icon {
    display: inline-block;
    font-size: 20px;
    transition: .38s;
    transform: rotate(180deg);

    &.is-active {
      transform: rotate(0deg);
    }
  }

  &:hover {
    color: $--color-primary;
  }
}


.header-container {
  height: 50px;
  line-height: 50px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dcdfe6;

  .left {
    display: flex;
  }

  .right {
    float: right;
    padding-right: 20px;
  }
}

.git-hub {
  margin-left: 20px;

  .iconfont {
    font-size: 16px;
  }
}

.dashboard-editor-container {
  background-color: $bg-color;

  .chart-wrapper {
    background: #fff;
    padding: 16px 16px 0;
    margin-bottom: 32px;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: $--color-primary;
    }
  }
}
